package com.handinfo.game;


public class GameItem
{
	public String m_key;
	public int m_num;
	public String m_name ;//测试用，以后移除
	
	public void init(ActorItem ai)
	{
		m_key = ai.m_key;
		m_name = ai.m_name;
		m_num = ai.m_num ;//在创建一个GameItem时候，需要将当前道具的数目赋予gameItem
	}
	
	public void numChanged(int num)
	{
		m_num += num;
		m_num = Math.max(0, m_num);
	}
}
